package com.itsu.app.exception;

import com.itsu.pojo.results.ErrorResult;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @项目名称: tanhua-53
 * @包名: com.itheima.appserver.excepiton
 * @作者: 李云飞
 * @日期: 2021-12-03
 */

@Data
@NoArgsConstructor
public class MyException extends RuntimeException {
    private ErrorResult errorResult;

    public MyException(ErrorResult errorResult) {
        super(errorResult.getErrMessage());
        this.errorResult = errorResult;
    }

}
